package com.sunkyc.commons.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@Api(value = "分页数据响应对象")
public class TablePageData<T> implements Serializable {

    @ApiModelProperty("查询分页")
    private Long current;
    @ApiModelProperty("查询分页记录大小")
    private Long pageSize;
    @ApiModelProperty("查询的总记录数")
    private Long pageTotal;
    @ApiModelProperty("查询得出的总页数")
    private Long pages;
    @ApiModelProperty("当前页的数据列表")
    private List<T> rows;
}
